package org.zjsru.product.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zjsru.product.mapper.ProductMapper;
import org.zjsru.product.pojo.Order;

@Service
public class ProductService {
    @Autowired
    private ProductMapper productMapper;

    public Order queryOrderById(Long orderId) {
        // 1.查询订单
        Order order = productMapper.findById(orderId);
        // 4.返回
        return order;
    }
}
